<?php
/**
 * Created by PhpStorm.
 * Author: 黑瞎子
 * Date: 2018/3/14
 * Time: 17:07
 */

namespace app\api\validate;


class IDMustBePostiveInt extends BaseValidate
{
    protected $rule = [
        'id' => 'require|isPositiveInteger'
    ];

    protected $message = [
        'id.isPositiveInteger' => 'id必须是正整数',
        'id.require' => 'id不能为空'
    ];
}